POV-Ray : Newsgroups : povray.text.scene-files : Metal texture : Metal texture Server Time
28 Jul 2024 16:21:18 EDT (-0400)
  Metal texture  
From: Chris Huff
Date: 2 Jan 2000 13:05:39
Message: <chrishuff_99-48FC49.13054102012000@news.povray.org>
// Persistence of Vision Ray Tracer Scene Description File
// File: Metal Texture.pov
// Vers: 3.1
// Desc: a demo of a metal texture for nuts and bolts
// Date: 1/2/2000
// Auth: Chris Huff
//*******************************************
#include "colors.inc"
#version 3.1;

#declare groundPlane = yes;
//-------------------------------------------
global_settings {
   assumed_gamma 1.8
}
background {
   color rgb < 0.870000, 0.870000, 0.870000 > 
}
camera {
   location < 4, 5, -8>*2
   look_at < 0, 0, 0>
   angle 30
}
#if(groundPlane = yes)
   plane {y, 0
      texture {
         pigment {checker color White color rgb < 0, 0, 0.15>}
         finish {
            diffuse 0.7
            ambient 0.30
            reflection 0.2
         }
         scale 3
      }
   }
#end

//*******************************************
#declare MetalTex =
texture {
   pigment {bozo
      color_map {
         [0 color rgb < 1, 0.9, 0.85>]
         [0.5 color rgb < 1, 0.9, 0.85>]
         [1 color White]
      }
      turbulence 0.2
      scale 2
   }
   finish {
      specular 0.4
      metallic
      reflect_metallic
      reflection 0.15
      irid {0.25
         thickness 0.5
         turbulence 1
      }
      diffuse 0.6
//    brilliance 1.0
   }
   normal {agate 0.1
      scale 0.25
   }
}

difference {
   intersection {
      box {<-10,-2.5,-5>, < 10, 2.5, 5>}
      box {<-10,-3,-5>, < 10, 3, 5> rotate -y*60}
      box {<-10,-3,-5>, < 10, 3, 5> rotate y*60}
      sphere {< 0, 0, 0>, sqrt(50)-0.1 scale <1, 0.5, 1>}
   }
   union {
      cylinder {< 0,-3, 0>, < 0, 3, 0>, 2.5}
   }
   texture {MetalTex}
   translate y*2.5
   scale 0.5
   rotate y*35
}
//*******************************************

light_source {<-10, 50,-40>*100 color White }

//-------------------------------------------

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.